
package net.swa.dewei.beans.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/** 得威一卡通商城订单 **/
@Entity
@Table(name = "t_dingdan_card_info")
public class DingDanCardGoods implements Serializable
{
    private static final long serialVersionUID = -3048686789035179808L;

    // PK
    private Long id;

    private Long fid;

    /**商品id**/
    private Long goodsId;

    private String goodsName;

    private String pinpai;

    //型号or 规格
    private String guige;

    private double price;

    private String imageUrl;

    /**购买数量**/
    private int num;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public String getGoodsName()
    {
        return goodsName;
    }

    public void setGoodsName(String goodsName)
    {
        this.goodsName = goodsName;
    }

    public double getPrice()
    {
        return price;
    }

    public void setPrice(double price)
    {
        this.price = price;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public int getNum()
    {
        return num;
    }

    public void setNum(int num)
    {
        this.num = num;
    }

    public Long getFid()
    {
        return fid;
    }

    public void setFid(Long fid)
    {
        this.fid = fid;
    }

    public String getPinpai()
    {
        return pinpai;
    }

    public void setPinpai(String pinpai)
    {
        this.pinpai = pinpai;
    }

    public String getGuige()
    {
        return guige;
    }

    public void setGuige(String guige)
    {
        this.guige = guige;
    }
}